﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Portal
{
    public  class Entity : BaseEntity, IEntity
    {
        public virtual IEntity CreateEntity()
        {
            return new Entity();
        }

        public Entity()
        {
            Id = Guid.NewGuid().ToString();
            CreateTime = DateTime.Now;
            IsDelete = false;
            Version = 0;
            ModifyTime = DateTime.Now;

        }

        public virtual string Id { get; set; }
        public virtual DateTime CreateTime { get; set; }
        public virtual bool IsDelete { get; set; }
        public virtual Int64 Version { get; set; }
        public virtual DateTime ModifyTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public virtual string Modifier
        {
            get;
            set;
        }

        public virtual string Founder { get; set; }
        public virtual string Owner { get; set; }
        public virtual bool IsClosed { get; set; }
    }
}
